<template>

        <!-- 面包屑导航 -->
<el-breadcrumb separator-class="el-icon-arrow-right">
  <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
  <el-breadcrumb-item v-for="(item,index) in navData" :key="index">{{item}}</el-breadcrumb-item>
  </el-breadcrumb>

</template>

<script>
    export default {
        props:{
            navData:{
                type:Array,
                default:[]
            }
        },
        methods:{
            onNavClick(){
                this.$emit("onNavClick","1234");
                this.$bus.$emit("onNavClick123","1234")
            }
        }
    }
</script>

<style lang="scss" scoped>
.el-breadcrumb{
    margin-bottom: 20px;
}
</style>